home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Gold Collection / Software Vault - The Gold Collection (American Databankers) (1993).ISO / cdr26 / netprog.zip / NETPROG.TAR / lpr / Makefile < prev    next >
Makefile  |  1989-12-17  |  536b  |  33 lines

  1. #
  2. # Makefile for line printer spooler client program.
  3. #
  4.  
  5. OBJ    = main.o initvars.o printbsd.o seqno.o
  6. SRC    = main.c initvars.c printbsd.c seqno.c
  7. MYLIB    = ../libnet.a
  8.  
  9. all:
  10.     make `systype.sh`
  11.  
  12. bsd:
  13.     make "CFLAGS = -O" \
  14.         "LIBS = " mylpr
  15.  
  16. sys5:
  17.     make "CFLAGS = -I/usr/netinclude -O" \
  18.         "LIBS = -lnet -lnsl_s" mylpr
  19.  
  20. mylpr:    $(OBJ)
  21.     cc -o mylpr $(CFLAGS) $(OBJ) $(MYLIB) $(LIBS)
  22.  
  23. $(OBJ): defs.h
  24.  
  25. clean:
  26.     rm -f *.o mylpr *.out temp.* make.* Make.* core cf[A-Z][0-9][0-9][0-9]*
  27.  
  28. print:    clean
  29.     print *.h *.c
  30.  
  31. lint:
  32.     lint -bhx $(SRC) > lint.out
  33.